const KEY = 'local-city'

export const setLocalCity = (value) => {
  window.localStorage.setItem(KEY, JSON.stringify(value))
}

export const getLocalCity = () => {
  return JSON.parse(window.localStorage.getItem(KEY))
}

export const deleteLocalCity = () => {
  window.localStorage.removeItem(KEY)
}
